package com.ruoyi.common.log.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 加工表
 * @TableName src_process
 */
@TableName(value ="src_process")
@Data
public class Process implements Serializable {
    /**
     * 加工id
     */
    @TableId(type = IdType.AUTO)
    private Integer processId;

    /**
     * 加工厂名称
     */
    private String processName;

    /**
     * 任务名称
     */
    private String quest;

    /**
     * 任务数量
     */
    private Integer questNum;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;

    /**
     * 农作物id
     */
    private Integer cropId;

    /**
     * 仓库id
     */
    private Integer cargoId;

    /**
     * 零售商id
     */
    private String retailId;

    /**
     * 省
     */
    private Integer provinceId;

    /**
     * 市
     */
    private Integer cityId;

    /**
     * 区
     */
    private Integer areaId;

    /**
     * 状态（1未加工 2加工中3 已加工）
     */
    private String statu;

    /**
     * 图片
     */
    private String pic;

    /**
     * 备注
     */
    private String remark;

    @TableField(exist = false)
    private String cropName;
    @TableField(exist = false)
    private String cargoName;
    @TableField(exist = false)
    private String retailName;
    @TableField(exist = false)
    private String provinceName;
    @TableField(exist = false)
    private String cityName;
    @TableField(exist = false)
    private String areaName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}